package com.chen.androidstudy.activity;

import android.os.Bundle;
import android.util.Log;

import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;

import com.chen.androidstudy.utils.KeyStoreHelper;

/**
 * @Author: CHong
 * @CreateDate: 2024/10/10 0010
 * @Description:
 */

public class KeyStoreTestActivity extends AppCompatActivity {
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        String res = "你好，这是加密数据";
        byte[] bytes = KeyStoreHelper.INSTANCE.encryptData(res);
        String data = KeyStoreHelper.INSTANCE.decryptData(bytes);
        Log.e("chen", data);
    }

}
